package com.peng.controller;

import com.peng.service.SignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class SignController {
    @Autowired
    private SignService signService;

    @GetMapping("/hello")
    public String toHello() {
        return "hello";
    }

    //签到功能
    @GetMapping("/home/sign")
    public String sign(int userId) {
        signService.addSignInByUserId(userId);
        return "true";
    }

}
